package com.mycompany.virtualApp.dao;

import com.mycompany.virtualApp.entity.TabAdvModel;
import com.mycompany.virtualApp.entity.TopEntity;
import com.mycompany.virtualApp.mapper.TabAdvMapper;
import com.mycompany.virtualApp.mapper.TopMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/12/6 0006.
 */
@Repository("systemMapper")
public class TopDaoImpl implements TopDao {

    @Autowired
    private TopMapper topMapper;

    @Override
    public void closeDesktopAdv(HashMap map) {
        topMapper.closeDesktopAdv(map);
    }

    @Override
    public TopEntity getDesktopDevInfo(HashMap value) {
        return topMapper.getDesktopDevInfo(value);
    }
    @Override
    public TopEntity getTabAdvInfo(HashMap value) {
        return topMapper.getTabAdvInfo(value);
    }

    @Override
    public void updateBannerClickNums(HashMap map) {
         topMapper.updateBannerClickNums(map);

    }

    @Override
    public void updateDesktopClickNums(HashMap map) {
         topMapper.updateDesktopClickNums(map);

    }

    @Override
    public void updateTabClickNums(HashMap map) {
         topMapper.updateTabClickNums(map);

    }

    @Override
    public void operateTabAdvInfo(HashMap map) {
         topMapper.operateTabAdvInfo(map);
    }
}
